using System;
using CQRS.Events;

namespace CQRS.Sample.Domain.Commands
{
    public class CreatePlaneCommand : Command
    {
        public CreatePlaneCommand(string planeName, string manufacturer, long yearManufactured,
                                  long flightsMadeByPlane, string pilotName, string pilotSurame,
                                  long flightsMadeByPilot)
        {
            Manufacturer = manufacturer;
            YearManufactured = yearManufactured;
            FlightsMadeByPlane = flightsMadeByPlane;
            PilotName = pilotName;
            PilotSurame = pilotSurame;
            FlightsMadeByPilot = flightsMadeByPilot;
            PlaneName = planeName;
        }

        public string Manufacturer { get; private set; }

        public long YearManufactured { get; private set; }

        public long FlightsMadeByPlane { get; private set; }
        public string PilotName { get; private set; }
        public string PlaneName { get; private set; }
        public string PilotSurame { get; private set; }

        public long FlightsMadeByPilot { get; private set; }
    }
}